import modal from "../pages/modal"
export default{
    components: {
        modal
    },
    data(){
        return {
            visible:false
        }
    },
    methods:{
        showModal(){
            this.visible=true
        },
        //模态框点击确定按钮触发的处理函数
        cancel(){
            this.visible=false;
        },
        
        //模态框点击取消按钮触发的处理函数
        confirm(){
            this.visible=false;
        },
    }
}